package com.service.impl;

import com.bean.OrderItem;
import com.bean.User;
import com.dao.OrderItemDao;
import com.dao.impl.OrderItemDaoImpl;
import com.service.OrderItemService;

import java.util.List;
import java.util.Map;

public class OrderItemServiceImpl implements OrderItemService {
    private OrderItemDao orderItemDao=new OrderItemDaoImpl();

    @Override
    public List<OrderItem> showMyOrderItem(String orderid) {
        return orderItemDao.showMyOrderItem(orderid);
    }

    @Override
    public OrderItem getOrderItem(Integer id) {
        return orderItemDao.getOrderItem(id);
    }

    @Override
    public List<OrderItem> showMyOrderItems(String enterpriseid) {
        return orderItemDao.showMyOrderItems(enterpriseid);
    }

    @Override
    public void sendOrderItem(Integer id) {
        orderItemDao.updateOrderItem(id);
    }

    @Override
    public List<OrderItem> showOrderItemByStatus(Integer status) {
        return orderItemDao.showOrderItemByStatus(status);
    }

    @Override
    public void receiverOrderItem(Integer id) {
        orderItemDao.receiveOrderItem(id);
    }

    @Override
    public List<Map<String, Object>> showOrderItem(String orderid) {
        return orderItemDao.showOrderItem(orderid);
    }

    @Override
    public List<Map<String, Object>> querylist(String userid, Integer status) {
        return orderItemDao.queryUserid(userid,status);
    }

    @Override
    public void updateStatus(Integer id) {
        orderItemDao.updateStatus(id);
    }

    @Override
    public List<Map<String, Object>> queryStatus(Integer status, String enterpriseid) {
        return orderItemDao.queryStatus(status,enterpriseid);
    }
}
